import influxdb




def devClient():
    # InfluxDB连接信息
    host = 'influxdb-54cb4c629b19222c8291c.rds-sd.mdp.com'
    port = 8086
    username = 'limsadmin'
    password = 'UhO}14LnO@q_C[,4g2{u'
    database = 'lims'

    # 创建InfluxDB客户端
    client = influxdb.InfluxDBClient(host, port, username, password, database)
    return client


def sitClient():
    return devClient()

def uatClient():
    # InfluxDB 的连接信息
    host = 'influxdb-933c013854195ef5bd12c.db-ga-test.mdp.com'
    port = 8086
    username = 'limsadmin'
    password = '=A%LVY{)1*LdMv1R2lq8'
    database = 'lims'

    # 创建 InfluxDB 客户端
    client = influxdb.InfluxDBClient(host, port, username, password, database, timeout=10)
    return client